// __PUBLIC__/js/page/admin/footprint/footprint
require(['../../common'], function() {
  require(['userfriends.userfriends'])
})

define('userfriends.userfriends', [
  'jquery',
  'page/grid'
], function($, Grid) {
  'use strict';
 
  $('#J_search').on('click', function(e) {
    e.preventDefault()
    searchData()
  })
  $('#J_more').on('click', function(e) {
    e.preventDefault()
    $(this).next('.more-constraints').toggle()
  })

  function searchData() {
    var userid   = $('#userid').val();
    var jid     = $('#jid').val();
    var i_status     = $('#i_status').val();
    var par_get  = '&userid=' + userid + '&jid=' + jid  + '&i_status=' + i_status  
    location.href = APP + '?app=admin&m=UserFriends&a=userfriends' + par_get;
  }
})
